<project name="Axis example build" default="run-example">
    <description>
        Axis example build file
    </description>

    <property file="build.properties" />

    <path id="default.class.path">
        <fileset dir="lib">
            <include name="**/*.jar" />
        </fileset>
        <fileset dir="${axis.home}/lib">
            <include name="**/*.jar" />
        </fileset>
        <pathelement location="build" />
    </path>

    <target name="generate-proxy" depends="prepare">
        <java fork="yes" classpathref="default.class.path"
            classname="org.apache.axis.wsdl.WSDL2Java">
            <arg value="-o" />
            <arg value="src" />
            <arg value="${wsdl.location}" />
        </java>
    </target>

    <target name="prepare">
        <mkdir dir="build" />
        <mkdir dir="lib" />
    </target>

    <target name="compile" depends="prepare">
        <javac debug="on" srcdir="src" destdir="build"
            classpathref="default.class.path" />
    </target>

    <target name="run-example" depends="compile">
        <java fork="yes" classpathref="default.class.path"
            classname="example.AxisClient" />
    </target>
</project>

